package com.fanshuai.heap;

public interface Heap<E> {
    void add(E data) throws IndexOutOfBoundsException;
    E pop();
    E peek();

    int size();
    boolean isEmpty();
    boolean isFull();
}
